package com.yuerlive.rainbow.api;

import com.yuerlive.rainbow.API;
import com.yuerlive.rainbow.entity.Anchor;
import com.yuerlive.rainbow.entity.BaseData;
import com.yuerlive.rainbow.entity.SearchData;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by xiaoyi on 2017/5/24.
 */

public interface SubscribeService {
    @FormUrlEncoded
    @POST(API.SUBSCRIBE)
    Observable<BaseData> subscribe(@FieldMap Map<String, String> params);
    @FormUrlEncoded
    @POST(API.LIVE_INFORM)
    Observable<BaseData> inform(@FieldMap Map<String ,String> params);
    @FormUrlEncoded
    @POST(API.LIVE_MUTE)
    Observable<BaseData> mute(@FieldMap Map<String,String> params);
}
